<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <hjh199427@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

// 前台pc
Route::get('/', 'index/Index/index');
Route::get('index/Index/index', 'index/Index/index');
Route::get('index/index/show/id/:id', 'index/index/show');
Route::get('index/index/type/id/:id', 'index/index/type');
Route::get('index/login/index', 'index/login/index');
Route::get('index/login/sms', 'index/login/sms');
Route::get('index/register/index', 'index/register/index');
Route::get('index/index/search', 'index/index/search');
Route::post('index/Index/delfav', 'index/Index/delfav');
Route::post('index/Index/favorite', 'index/Index/favorite');
Route::get('index/comment/insert/id/:id', 'index/comment/insert');
Route::post('index/Comment/add', 'index/Comment/add');
Route::get('index/login/logout', 'index/login/logout');
Route::post('index/Login/dologin', 'index/Login/dologin');
Route::get('index/user/index', 'index/user/index');
Route::get('index/user/edit', 'index/user/edit');
Route::post('index/user/delete', 'index/user/delete');
Route::post('index/User/imgPath', 'index/User/imgPath');
Route::post('index/User/update', 'index/User/update');
Route::post('index/User/passupdate', 'index/User/passupdate');
Route::get('index/user/passed/id/:id', 'index/user/passed');
Route::post('index/user/passed/id/', 'index/user/passed/id/');
Route::post('index/register/email', 'index/register/email');
Route::post('index/Register/insert', 'index/Register/insert');
Route::get('index/login/firstsmjy', 'index/login/firstsmjy');
Route::post('index/send/sendmobilemsg', 'index/send/sendmobilemsg');
Route::post('index/Login/smslogin', 'index/Login/smslogin');

// 前台手机
Route::get('mobile/Index/index', 'mobile/Index/index');
Route::get('mobile/index/show/id/:id', 'mobile/index/show');
Route::get('mobile/index/type/id/:id', 'mobile/index/type');
Route::get('mobile/login/index', 'mobile/login/index');
Route::get('mobile/login/sms', 'mobile/login/sms');
Route::get('mobile/register/index', 'mobile/register/index');
Route::post('mobile/register/email', 'mobile/register/email');
Route::post('mobile/register/insert', 'mobile/register/insert');
Route::get('mobile/index/search', 'mobile/index/search');
Route::post('mobile/Index/delfav', 'mobile/Index/delfav');
Route::post('mobile/Index/favorite', 'mobile/Index/favorite');
Route::get('mobile/comment/insert/id/:id', 'mobile/comment/insert');
Route::post('mobile/comment/add', 'mobile/comment/add');
Route::get('mobile/login/logout', 'mobile/login/logout');
Route::post('mobile/Login/dologin', 'mobile/Login/dologin');
Route::get('mobile/user/index', 'mobile/user/index');
Route::post('mobile/user/delete', 'mobile/user/delete');
Route::post('mobile/User/imgPath', 'mobile/User/imgPath');
Route::post('mobile/User/update', 'mobile/User/update');
Route::get('mobile/user/passed/id/:id', 'mobile/user/passed');
Route::get('mobile/user/collect/id/:id', 'mobile/user/collect');
Route::get('mobile/user/comment/id/:id', 'mobile/user/comment');
Route::get('mobile/user/edit/id/:id', 'mobile/user/edit');
Route::get('mobile/index/newmore', 'mobile/index/newmore');
Route::get('mobile/index/hotmore', 'mobile/index/hotmore');



// Route::get('/mobile/', 'mobile/Index/index');
// return [
// 	'__miss__' => 'index/Fzf/index',
// ];
Route::miss('index/Fzf/index');

// 后台
Route::get('admin/login/index', 'admin/login/index');
Route::post('admin/login/dologin', 'admin/login/dologin');
Route::get('admin/admin_controller/index', 'admin/admin_controller/index');
Route::get('admin/auser/index', 'admin/auser/index');
Route::get('admin/auser/edit/id/:id', 'admin/auser/edit');
Route::post('admin/auser/update', 'admin/auser/update');
Route::get('admin/auser/getrole/id/:id', 'admin/auser/getrole');
Route::post('admin/auser/updaterole', 'admin/auser/updaterole');
Route::post('admin/auser/delete', 'admin/auser/delete');
Route::get('admin/auser/add', 'admin/auser/add');
Route::post('admin/auser/insert', 'admin/auser/insert');
Route::get('admin/auser/search', 'admin/auser/search');

Route::get('admin/role/index', 'admin/role/index');
Route::get('admin/role/edit/id/:id', 'admin/role/edit');
Route::post('admin/role/update', 'admin/role/update');
Route::get('admin/role/getpower/id/:id', 'admin/role/getpower');
Route::post('admin/role/updatepower', 'admin/role/updatepower');
Route::post('admin/role/delete', 'admin/role/delete');
Route::get('admin/role/add', 'admin/role/add');
Route::post('admin/role/insert', 'admin/role/insert');

Route::get('admin/power/index', 'admin/power/index');
Route::get('admin/power/edit/id/:id', 'admin/power/edit');
Route::post('admin/power/update', 'admin/power/update');
Route::post('admin/power/delete', 'admin/power/delete');
Route::get('admin/power/add', 'admin/power/add');
Route::post('admin/power/insert', 'admin/power/insert');

Route::get('admin/user/index', 'admin/user/index');
Route::get('admin/user/edit/id/:id', 'admin/user/edit');
Route::post('admin/user/update', 'admin/user/update');
Route::post('admin/user/delete', 'admin/user/delete');
Route::get('admin/user/add', 'admin/user/add');
Route::post('admin/user/insert', 'admin/user/insert');
Route::get('admin/user/search', 'admin/user/search');

Route::get('admin/movie/index', 'admin/movie/index');
Route::get('admin/movie/edit/id/:id', 'admin/movie/edit');
Route::post('admin/movie/update', 'admin/movie/update');
Route::post('admin/movie/delete', 'admin/movie/delete');
Route::get('admin/movie/add', 'admin/movie/add');
Route::post('admin/movie/insert', 'admin/movie/insert');
Route::get('admin/movie/search', 'admin/movie/search');
Route::get('admin/movie/getactor/id/:id', 'admin/movie/getactor');
Route::post('admin/movie/updateactor', 'admin/movie/updateactor');

Route::get('admin/actor/index', 'admin/actor/index');
Route::get('admin/actor/edit/id/:id', 'admin/actor/edit');
Route::post('admin/actor/update', 'admin/actor/update');
Route::post('admin/actor/delete', 'admin/actor/delete');
Route::get('admin/actor/add', 'admin/actor/add');
Route::post('admin/actor/insert', 'admin/actor/insert');

Route::get('admin/comment/index', 'admin/comment/index');
Route::get('admin/comment/edit/id/:id', 'admin/comment/edit');
Route::post('admin/comment/update', 'admin/comment/update');
Route::post('admin/comment/delete', 'admin/comment/delete');
Route::get('admin/comment/add', 'admin/comment/add');
Route::post('admin/comment/insert', 'admin/comment/insert');
Route::get('admin/comment/search', 'admin/comment/search');

Route::get('admin/count/index', 'admin/count/index');
Route::get('admin', 'admin/index/index'); 



